package com.tanhua.sso.server.controller;

import com.tanhua.sso.server.service.HuanXinService;
import com.tanhua.sso.vo.HuanXinUserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("huanxin")
public class HuanXinController {

    @Autowired
    private HuanXinService huanXinService;

    //查询环信人信息
    @GetMapping("/user")
    private ResponseEntity user(){
       HuanXinUserVo huanXinUserVo= huanXinService.huanUser();
       return ResponseEntity.ok(huanXinUserVo);
    }
}
